<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>编辑评论</title>
<script type="text/javascript" src="../js/jquery-1.8.2.min.js"></script>
<script type="text/javascript">
	function check_submit()
	{
		var username = $.trim($('#username').val());
		var content = $.trim($('#msg').val());
		if(username.length == 0 || content.length == 0)
		{
			alert('评论人和评论内容不能为空');
			return false;
		}
		if(username.length > 50)
		{
			alert('评论人名称长度超出50个字符限制');
			return false;
		}
		if(content.lenght > 250)
		{
			alert('评论内容长度超出250个字符限制');
			return false;
		}
		return true;
	}
</script>
<link href="../img/base.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="98%"  border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#D1DDAA">
  <tr>
    <td width="100%" height="24" colspan="2" background="img/tbg.gif">
    	&nbsp;<strong><a href=""><u>评论管理</u></a> &gt;&gt; 编辑评论：</strong>
    </td>
  </tr>
  <tr>
    <td height="187" colspan="2" align="center" bgcolor="#FFFFFF">
	<form name="form1" method="post" action="feedback.php" onsubmit="return check_submit();">
	<input type="hidden" name="op" value="update_feedback" />
	<input type="hidden" name="id" value="<{$feedback_info.feedback_id}>" />
        <table width="100%" border="0" cellpadding="3" cellspacing="1">
          <tr bgcolor="#FFFFFF"> 
            <td width="18%" height="24">评论所属文章：</td>
            <td width="82%"> 
              <{$feedback_info.arctitle}>
            </td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td height="24">评论人：</td>
            <td> 
              <input name="username" type="text" id="username" size="20" value="<{$feedback_info.username}>" /> 
            </td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td height="24">评论发布时间：</td>
            <td> 
              <{$feedback_info.dtime|date_format:"%Y-%m-%d %T"}>
            </td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td height="24">IP地址：</td>
            <td> 
              <{$feedback_info.ip}>
            </td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td height="24">评论内容：</td>
            <td>更改的评论内容HTML代码不会被屏蔽，可用HTML语法编辑，250字符内</td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td height="62" align="center">&nbsp; </td>
            <td height="62"> 
              <textarea name="msg" cols="60" rows="5" id="msg"><{$feedback_info.msg}></textarea></td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td height="24">管理员回复：</td>
            <td>回复内容的HTML代码会被屏蔽。</td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td height="24" align="center">&nbsp; </td>
            <td height="24"> 
              <textarea name="adminmsg" cols="60" rows="5" id="adminmsg"></textarea></td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td height="40" width='600' colspan="2" align="center"> 
              <input type="submit" name="Submit1" class='coolbg np' value="保存更改"  />
              &nbsp; 
              <input type="button" name="Submit2" class='coolbg np' value="返回" onClick="location='feedback.php'" />
            </td>
          </tr>
        </table>
	  </form>
	  </td>
  </tr>
</table>
</body>
</html>